package io.renren.modules.zhongyi.service.impl;

import io.renren.modules.zhongyi.dao.ZYLearnDao;
import io.renren.modules.zhongyi.entity.*;
import io.renren.modules.zhongyi.service.ZYLearnService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class ZYLearnServiceImpl implements ZYLearnService {

    @Autowired
    ZYLearnDao ZYLearnDao;

    @Override
    public List getLearnListData() {
        return ZYLearnDao.getCourseListData();
    }

    @Override
    public AudioEntity getAudioDetailData(String id) {

        return ZYLearnDao.getAudioDetailData(id);
    }

    @Override
    public List<AudioChapterBean> getAudioChapterData(String id) {
        return ZYLearnDao.getAudioChapterData(id);
    }

    @Override
    public VedioEntity getVedioDetailData(String id) {
        return ZYLearnDao.getVedioDetailData(id);
    }

    @Override
    public List<VedioChapterBean> getVedioChapterData(String id) {
        return ZYLearnDao.getVedioChapterData(id);
    }

    @Override
    public List<BannerEntity> getBannerData() {
        return ZYLearnDao.getBannerData();
    }

    @Override
    public void setCollectionData(CollectionBean bean) {

        ZYLearnDao.setCollectionData(bean);
    }

    @Override
    public void delCollectionData(CollectionBean bean) {

        ZYLearnDao.delCollectionData(bean);
    }

    @Override
    public CollectionBean queryCollectionStatus(CollectionBean bean) {
        return ZYLearnDao.queryCollectionStatus(bean);
    }


}
